package com.shjy.driver.delegate;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.webkit.JavascriptInterface;
import android.webkit.WebView;
import android.widget.Toast;

import com.shjy.driver.activity.DetailActivity;
import com.shjy.driver.activity.PrintActivity;
import com.shjy.driver.base.BluetoothPrint;
import com.shjy.driver.jg.JGUtil;
import com.shjy.driver.util.AntUtils;
import com.shjy.driver.util.BusinesNumberConst;
import com.shjy.driver.util.Const;

/**
 * Created by wed on 2017/5/20.
 */

public class DetailWebviewDelegate extends BaseWebviewDelegate {

    public DetailWebviewDelegate(Context context, Handler handler, WebView webView) {
        super(context, handler, webView);
    }

    /**
     * 我的订单
     */
    @JavascriptInterface
    public void goOrderDetail(final String url) {
        mWebView.post(new Runnable() {
            @Override
            public void run() {
                mWebView.loadUrl(Const.URL_PREFIX + url);
            }
        });
    }
}
